import request from '@/utils/request'



export function getProductUsableList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/product/getUsableList',
    method: 'post',
    data: query
  })
}   


export function getProductList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/product/getList',
    method: 'post',
    data: query
  })
}   

export function saveProduct(query) {
  return request({
    url: '/supply/admin/product/save',
    method: 'post',
    data: query
  })
}

export function removeProduct(query) {
  return request({
    url: '/supply/admin/product/remove',
    method: 'post',
    data: query
  })
}
export function getProductDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/product/getDetail',
    method: 'post',
    data: query
  })
}